# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-sip
pkgver=6.8.3
pkgrel=1
pkgdesc="A tool that makes it easy to create Python bindings for C and C++ libraries"
options="!check" # No testsuite
url="https://www.riverbankcomputing.com/software/sip/"
arch="all"
license="custom:sip"
depends="
	py3-packaging
	py3-ply
	py3-setuptools
	py3-toml
	"
makedepends="python3-dev py3-gpep517 py3-wheel"
subpackages="$pkgname-pyc"
source="https://pypi.python.org/packages/source/s/sip/sip-$pkgver.tar.gz"
builddir="$srcdir/sip-$pkgver"

replaces="py-sip" # Backwards comptibility
provides="py-sip=$pkgver-r$pkgrel" # Backwards comptibility

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/sip-*.whl
}

sha512sums="
8a0ff1c16ead4c2b1c53963a015fb3d149362f649eeec2523e6b243945493f28f5ecf29aabbf5cee5f7909ded40d64a1f469d2d0c1b3c33244e6213ab23ec733  sip-6.8.3.tar.gz
"
